#include 	<stdio.h>
#include	<iostream>
#include	<queue>
#include	<algorithm>
using namespace std;

int main(int argc, char *argv[])
{
	int i;
	queue<int> q;
	for(i = 0; i < 5; i++)
	{
		q.push(i);
	}
	while(q.size())
	{
		cout<<q.front();
		q.pop();
	}
	printf("\n");
	return 0;
}
